import { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [];

const module = import.meta.globEager('./module/*.ts');

Object.keys(module).forEach((value) => {
  if (!module[value]) {
    return;
  }
  routes.push(...(module[value].default as RouteRecordRaw[]));
});

export default routes;
